package org.easy.platform.system.feign;

import org.easy.platform.system.constant.SystemServiceNameConstants;
import org.easy.platform.system.factory.RemoteSystemFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * 类说明
 *
 * @author YanMing
 * @date 2024/4/29
 */
@FeignClient(contextId = "feignSystemService", value = SystemServiceNameConstants.SYSTEM_NACOS, fallbackFactory = RemoteSystemFallbackFactory.class)
public interface SystemApiFeign {

    @GetMapping("/system")
    public String hello(@RequestParam(value = "content", defaultValue = "feign")String content);
}
